﻿<%@ Page Title="Duyuru Giriş" Language="C#" MasterPageFile="~/TapuKadastro.master" AutoEventWireup="True"
    Inherits="IKYSWeb.Duyurular.Duyurular_Duyuru" CodeBehind="Duyuru.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH" runat="Server">
    <h3 class="title">
        Duyuru Giriş Sayfası</h3>
    <asp:UpdatePanel ID="upDuyuru" runat="server">
        <ContentTemplate>
            <table class="form">
                <tr style="border-style: solid">
                    <td colspan="2">
                        <table>
                            <tr>
                                <td colspan="2">
                                    <h5>
                                        Duyuru Sorgulama
                                    </h5>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Başlangıç Tarhi:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAraBasTar" runat="server" CssClass="tarih1"></asp:TextBox>
                                </td>
                                <td>
                                    Bitiş Tarihi:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAraBitTar" runat="server" CssClass="tarih2"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Durumu:
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlAraDurum" runat="server">
                                        <asp:ListItem Text="Aktif" Value="1"></asp:ListItem>
                                        <asp:ListItem Text="Pasif" Value="2"></asp:ListItem>
                                        <asp:ListItem Value="-1">Hepsi</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                </td>
                                <td>
                                    <asp:Button ID="btnAra" runat="server" Text="Ara" CausesValidation="False" OnClick="btnAra_Click"
                                        Style="height: 26px" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="border-style: solid">
                    <td colspan="2">
                        <h5>
                            Duyuru Yönetimi</h5>
                    </td>
                </tr>
                <tr style="border-style: solid">
                    <td>
                        <asp:GridView ID="grvDuyuru" runat="server" AllowPaging="true" AutoGenerateColumns="False"
                            Width="99%" CssClass="grid" OnPageIndexChanging="grvDuyuru_PageIndexChanging"
                            EmptyDataText="Aranılan kriterlere uygun sonuç bulunamadı." OnRowCommand="grvDuyuru_RowCommand"
                            OnRowDataBound="grvDuyuru_RowDataBound" DataKeyNames="ID">
                            <Columns>
                                <asp:BoundField DataField="BASLIK" HeaderText="Başlık" />
                                <asp:BoundField DataField="KONU" HeaderText="Konusu" />
                                <asp:BoundField DataField="BAS_TAR" HtmlEncode="False" HeaderText="Başlama Tarih"
                                    DataFormatString="{0:dd.MM.yyyy}" />
                                <asp:BoundField DataField="BIT_TAR" HtmlEncode="False" HeaderText="Bitiş Tarih" DataFormatString="{0:dd.MM.yyyy}" />
                                <asp:BoundField DataField="AKTIF" HeaderText="Durumu" />
                                <asp:ButtonField ControlStyle-CssClass="grd_Yazdir" CommandName="indir" Text="Ek" />
                                <asp:ButtonField ControlStyle-CssClass="grd_Guncelle" CommandName="Sec" Text="Güncelle" />
                                <asp:ButtonField ControlStyle-CssClass="grd_Sil onay" CommandName="Sil" Text="Sil" />
                            </Columns>
                            <RowStyle CssClass="even" />
                            <AlternatingRowStyle CssClass="odd" />
                            <EditRowStyle CssClass="odd" />
                            <EmptyDataRowStyle CssClass="empty" />
                        </asp:GridView>
                    </td>
                    <td valign="top">
                        <div>
                            <h3>
                                <asp:Label ID="lblDetay" runat="server" Text="Yeni Duyuru"></asp:Label></h3>
                            <div>
                                <table width="100%">
                                    <tr>
                                        <td class="label">
                                            Başlık
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtBaslik" runat="server" Width="250px" MaxLength="299"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtBaslik"
                                                ErrorMessage="Giriniz!" SetFocusOnError="True" ValidationGroup="Kaydet"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            Konu
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtKonu" runat="server" TextMode="MultiLine" Height="80px" Width="250px"
                                                MaxLength="999"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtKonu"
                                                ErrorMessage="Giriniz!" SetFocusOnError="True" ValidationGroup="Kaydet"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            Başlama Tarih:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtBasTar" runat="server" CssClass="tarih1"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtBasTar"
                                                ErrorMessage="Giriniz!" SetFocusOnError="True" ValidationGroup="Kaydet"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            Bitiş Tarihi:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtBitTar" runat="server" CssClass="tarih2"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtBitTar"
                                                ErrorMessage="Giriniz!" SetFocusOnError="True" ValidationGroup="Kaydet"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            Ek Dosya :
                                        </td>
                                        <td>
                                            <asp:FileUpload ID="fuYukle" runat="server" ToolTip="Duyuruya eklemek istedikleriniz!" />
                                            <asp:Image ID="imTip" runat="server" Visible="False" />
                                            <asp:Label ID="lblDosya" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="label">
                                            Durumu:
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlDurum" runat="server">
                                                <asp:ListItem Text="Aktif" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="Pasif" Value="2"></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="buton" colspan="2">
                                            <asp:Button ID="btnKaydet" runat="server" Text="Kaydet" OnClick="btnKaydet_Click"
                                                ValidationGroup="Kaydet" />
                                            <asp:Button ID="btnIptal" runat="server" Text="Vazgeç" CausesValidation="False" OnClick="btnIptal_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="kutuFooter">
                                <p>
                                </p>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btnKaydet" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
